package com.itheima.spring;

import org.springframework.context.ApplicationEvent;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-26 15:51
 **/
public class MessageEvent extends ApplicationEvent {
    private String phone;
    private String message;

    public MessageEvent(Object source) {
        super(source);
    }

    public MessageEvent(Object source, String phone, String message) {
        super(source);
        this.phone = phone;
        this.message = message;
    }
}
